package net.jueb.frameworkDemo.orm.mapdb;
import java.io.File;  
import java.util.NavigableSet;  
  
import org.mapdb.DB;  
import org.mapdb.DBMaker;
import org.mapdb.Serializer;  
  
public class SetsTest {  
    public static void main(String[] args) {  
        //异步写入，关闭事务  
        DB db = DBMaker.fileDB(new File("mapdb.db"))  
                .closeOnJvmShutdown().transactionEnable()  .make();  
        NavigableSet<Object> set = db.treeSet("set").serializer(Serializer.ILLEGAL_ACCESS).create(); 
        set.add("aaa");  
        set.add("bbb");  
        System.out.println(set);  
    }  
}  